# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=icoutils
pkgver=0.32.3
pkgrel=2
pkgdesc="Extracts and converts images in MS Windows(R) icon and cursor files."
url="https://www.nongnu.org/icoutils/"
arch="all"
license="GPL-3.0-or-later"
options="!check" # No test suite
depends="perl-libwww"
makedepends="libpng-dev"
subpackages="$pkgname-doc"
source="https://download.savannah.gnu.org/releases/icoutils/icoutils-$pkgver.tar.bz2"

prepare() {
	default_prepare
	update_config_guess
}

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="982a051a5dc4a63bb2a9f23e78e5a88e481e5c7a9c25789253e1c396e40d4c093e5a9b399966d660e4f2da21ce15d539cb9d20bfd8126b1138f148b86baa6726  icoutils-0.32.3.tar.bz2"
